|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.justhis.util.ResourcesReader
TODO
Constructor Summary | |
ResourcesReader()
|
Method Summary | |
static java.lang.String |
getCountry(java.lang.String encoding)
Get the country part of a locale encoding |
static java.lang.String |
getLanguage(java.lang.String encoding)
Get the language part of a locale encoding |
static java.util.Locale |
getLocale()
Return the instance of the current locale. |
static java.lang.String |
getLocaleEncoding()
Return the encoding of the current locale. |
static java.lang.String |
getTranslation(java.lang.String key)
Lookup the translation of a particular key |
static java.lang.String |
getTranslation(java.lang.String key,
java.lang.String lookup)
Lookup the translation of a particular key that contains exactly one lookup item within its translation |
static java.lang.String |
getTranslation(java.lang.String key,
java.lang.String[] lookup)
Lookup the translation of a particular key that contains any number of lookup items within its translation |
static java.lang.String |
getVariant(java.lang.String encoding)
Get the variant part of a locale encoding |
static void |
initBundle()
Initialize the bundle to use the resources associated with the default locale specified by the JVM |
static void |
setLocale(java.util.Locale locale)
Set the Locale using a java class instance of a locale |
static void |
setLocale(java.lang.String encoding)
Set the Locale using a string encoding of a locale. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourcesReader()
Method Detail |
public static java.lang.String getCountry(java.lang.String encoding)
encoding
- TODO
public static java.lang.String getLanguage(java.lang.String encoding)
encoding
- TODO
public static void setLocale(java.util.Locale locale)
locale
- TODOpublic static void setLocale(java.lang.String encoding)
encoding
- TODOpublic static java.util.Locale getLocale()
public static java.lang.String getLocaleEncoding()
public static java.lang.String getTranslation(java.lang.String key)
key
- TODO
public static java.lang.String getTranslation(java.lang.String key, java.lang.String lookup)
key
- TODOlookup
- TODO
public static java.lang.String getTranslation(java.lang.String key, java.lang.String[] lookup)
key
- TODOlookup
- TODO
public static java.lang.String getVariant(java.lang.String encoding)
encoding
- TODO
public static void initBundle()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |